package com.fourth.controller;

import com.fourth.service.PermissionService;

import com.ljx.entity.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2023/2/23 10:07
 * @Version 1.0
 */

@RestController
@RequestMapping("system/permission")
public class PermissionController {
	@Autowired(required = false)
	private PermissionService permissionService;

	@GetMapping("getPermissionByEmpId/{empid}")
	public List<Permission> selectPermissionByEmpId(@PathVariable String empid){
		return permissionService.selectPermissionByEmpId(empid);
	}
}
